import request from '@/utils/request'

// 信息通知列表接口
export function informationDeliveryList (data) {
  return request({
    url: '/tuoApi/tuoApi/informationDelivery/list',
    method: 'post',
    data
  })
}

// 督导上报管理列表
export function supervisionAndReportingList (data) {
  return request({
    url: '/tuoApi/tuoApi/supervisionAndReporting/list',
    method: 'get',
    params: data
  })
}

// 督导上报管理查询详情
export function supervisionAndReportingGetById (data) {
  return request({
    url: `/tuoApi/tuoApi/supervisionAndReporting/getById/${data}`,
    method: 'get'
  })
}

// 巡查机构反馈
export function supervisionAndReportingFeedback (data) {
  return request({
    url: `/tuoApi/tuoApi/supervisionAndReporting/feedback`,
    method: 'post',
    data
  })
}

// 课程管理列表
export function courseList (data) {
  return request({
    url: `/tuoApi/tuoApi/course/list`,
    method: 'post',
    data
  })
}

// ID查询课程详情
export function courseDetail (data) {
  return request({
    url: `/tuoApi/tuoApi/course/${data}`,
    method: 'get'
  })
}

// ID查询章节详情
export function getCourseChildList (data) {
  return request({
    url: `/tuoApi/tuoApi/course/getCourseChildList`,
    method: 'post',
    data
  })
}

// 新增播放量
export function addPlayCount (data) {
  return request({
    url: `/tuoApi/tuoApi/course/addPlayCount`,
    method: 'get',
    params: data
  })
}

// 点赞
export function courseLike (data) {
  return request({
    url: `/estimate/course/like`,
    method: 'post',
    data
  })
}

// 评论接口
export function courseAdd (data) {
  return request({
    url: '/estimate/course/add',
    method: 'post',
    data
  })
}

// 评论列表
export function estimateCourseList (params) {
  return request({
    url: '/estimate/course/list',
    method: 'get',
    params
  })
}

// 运营补贴列表
export function govCapitalSubsidyProjectList (params) {
  return request({
    url: '/tuoApi/tuoApi/govCapitalSubsidyProject/list',
    method: 'get',
    params
  })
}

// 运营补贴详情
export function govCapitalSubsidyProjectDetails (params) {
  return request({
    url: '/tuoApi/tuoApi/govCapitalSubsidyProject/details',
    method: 'get',
    params
  })
}

// 申请补贴
export function govCapitalSubsidyProjectApply (data) {
  return request({
    url: '/tuoApi/tuoApi/govCapitalSubsidyProject/apply',
    method: 'post',
    data
  })
}

// 撤销
export function govCapitalSubsidyProjectRevoke (params) {
  return request({
    url: '/tuoApi/tuoApi/govCapitalSubsidyProject/revoke',
    method: 'get',
    params
  })
}

// 质量评估标准分页列表
export function evaluationPlanList (data) {
  return request({
    url: '/tuoApi/tuoApi/evaluationPlan/list',
    method: 'post',
    data
  })
}

// ID查询详情(未上传)
export function evaluationPlanGetById1 (params) {
  return request({
    url: '/tuoApi/tuoApi/evaluationPlan/getById1',
    method: 'get',
    params
  })
}

// ID查询详情(已上传和详情)
export function evaluationPlanGetById (params) {
  return request({
    url: '/tuoApi/tuoApi/evaluationPlan/getById',
    method: 'get',
    params
  })
}

// 园区评分
export function qualityAssessmentAreaScore (data) {
  return request({
    url: '/tuoApi/tuoApi/qualityAssessment/areaScore',
    method: 'post',
    data
  })
}

// 应急处理
export function auditEmergency (data) {
  return request({
    url: '/tuoApi/tuoApi/emergency/auditEmergency',
    method: 'post',
    data
  })
}
// 应急处理列表
export function emergencyListArray (data) {
  return request({
    url: '/tuoApi/tuoApi/emergency/list',
    method: 'post',
    data
  })
}

// 应急事件列表
export function emergencyList (type) {
  return request({
    url: `/tuoApi/tuoApi/system/dict/data/list?pageNum=1&pageSize=99&dictType=${type}`,
    method: 'get'
  })
}

// 问题整改-列表
export function problemRectificationList (data) {
  return request({
    url: '/tuoApi/tuoApi/problemRectification/list',
    method: 'post',
    data
  })
}

// 质量评估问题未整改详情
export function ListIndexAndTemplate (data) {
  return request({
    url: '/tuoApi/tuoApi/problemRectification/ListIndexAndTemplate',
    method: 'post',
    data
  })
}

// 问题整改编辑
export function problemRectificationUpdateProblem (data) {
  return request({
    url: '/tuoApi/tuoApi/problemRectification/updateProblem',
    method: 'post',
    data
  })
}

// 质量评估问题已整改详情
export function problemRectificationDetail (data) {
  return request({
    url: '/tuoApi/tuoApi/problemRectification/detail',
    method: 'post',
    data
  })
}
